/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.edu.agh.sao.engine;

/**
 *
 * @author harry
 */
public class Ball {

    private GameBoard parent;
    private int color;

    public Ball(GameBoard parent, int color) {
        this.parent = parent;
        this.color = color;
    }

    public int getColor() {
        return color;
    }

    public boolean click() {
        return parent.click(this);
    }
}
